password1=input("输入密码：")
password2=input("确认密码：")


lower=False  # 小写
upper=False  # 大写
digit=False  # 数字

if password1==password2 and len(password1)>=8:
    for c in password1:
        if c.islower():
            lower = True

        if c.isupper():
            upper = True

        if c.isdigit():
            digit = True



else:
    print("密码输入错误")

print(lower,upper,digit)

if lower and upper and digit:
    print('密码设置成功')
else:
    print('不符合要求')